Handles the exception in a window.
Please note, this method will be executed on the UI thread.
The thrown exception.
The window, within which the exception was thrown.